From: Jonas Dreßler Date: Thu, 20 Feb 2020 18:57:20 +0000 (+0100) Subject: dateMenu: Sync initial state of the message indicator X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4c4d23ed83fcd5a5fa0fc2c314ec2b898f38c100;p=gnome-shell.git dateMenu: Sync initial state of the message indicator While the unread messages indicator is updated when starting a new session because we call _onSourceAdded() on existing sources, we should also update the do-not-disturb setting which might still be enabled. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1037 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 9d1de44b1..c6c1b5bb5 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -454,6 +454,8 @@ class MessagesIndicator extends St.Icon { let sources = Main.messageTray.getSources(); sources.forEach(source => this._onSourceAdded(null, source)); + this._sync(); + this.connect('destroy', () => { this._settings.run_dispose(); this._settings = null;